﻿using Domain.Interface.Organization;
using Framework.Domain.DomainObject.Bo;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Domain.Organization.BusinessObjects
{
    [Table("Users")]
    public class UserEntity : BaseBoEntity
    {
        public string Name { get; set; }
    }


    public class User : BaseBo, IUser
    {
        /// <summary>
        /// 数据实体
        /// </summary>
        private UserEntity SelfEntity
        {
            get { return this.Entity as UserEntity; }
            set { this.Entity = value; }
        }

        #region 构造函数
        public User(UserEntity entity)
        {
            this.SelfEntity = entity;
        }

        #endregion


    }




}
